package com.huazai;

import java.util.concurrent.locks.Lock;

/**
 * @description
 * @Author huazai
 * @Date 2024/2/2 13:58
 */
public class Main {
    public static void main(String[] args) {
        Thread thread = new Thread();
        System.out.println("Hello world!");
    //    并行  并发

        //管程 monitor 监视器

        // 用户线程
        // 守护线程：后台线程，如老机回收
        final Thread thread1 = new Thread(() -> {

        });
        thread1.setDaemon(true);

        // 锁 lock    synchronized
        Lock lock;
    }
}